//
//  TopNewController.m
//  ZooNgonDoiOS
//
//  Created by Anh Jun Linh Tinh on 6/3/12.
//  Copyright (c) 2012 Personal. All rights reserved.
//

#import "TopNewController.h"

@interface TopNewController ()

@end

@implementation TopNewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        UIView *mainview = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 320, 480)];
        [mainview setBackgroundColor:[UIColor blueColor]];
        UILabel *lbl = [[UILabel alloc]initWithFrame:CGRectMake(27, 75, 265, 324)];
        [lbl setText:@"Top new Screen"];
        [mainview addSubview:lbl];
        self.view = mainview;
//        [self.view addSubview:lbl];
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
